aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-public].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-public].yaml79
1 files changed, 11 insertions, 68 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-public].yaml b/tests/cassettes/test_status_post[Content warning-public].yaml
index f618326..36590a0 100644
--- a/tests/cassettes/test_status_post[Content warning-public].yaml
+++ b/tests/cassettes/test_status_post[Content warning-public].yaml
@@ -1,62 +1,5 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: spoiler_text=Content+warning&status=Toot%21&visibility=public
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['61']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99882190733684088","created_at":"2018-04-18T19:54:39.528Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
16 warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882190733684088","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190733684088","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
17 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
18 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
19 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
20 headers:
21 Cache-Control: ['max-age=0, private, must-revalidate']
22 Content-Type: [application/json; charset=utf-8]
23 ETag: [W/"f4ed0ec79bbe033c7575d8923132183d"]
24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin']
26 X-Content-Type-Options: [nosniff]
27 X-Frame-Options: [SAMEORIGIN]
28 X-Request-Id: [90a84961-7b4e-4da8-820b-8da17f2a8381]
29 X-Runtime: ['0.333955']
30 X-XSS-Protection: [1; mode=block]
31 content-length: ['1411']
32 status: {code: 200, message: OK}
33- request:
34 body: null
35 headers:
36 Accept: ['*/*']
37 Accept-Encoding: ['gzip, deflate']
38 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
39 Connection: [keep-alive]
40 Content-Length: ['0']
41 User-Agent: [python-requests/2.9.1]
42 method: DELETE
43 uri: http://localhost:3000/api/v1/statuses/99882190733684088
44 response:
45 body: {string: '{}'}
46 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"e66e319d7c337d6bb0aa7df37af0e536"]
50 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin']
52 X-Content-Type-Options: [nosniff]
53 X-Frame-Options: [SAMEORIGIN]
54 X-Request-Id: [c02e86e1-3b98-4897-857b-27a2b5f499c3]
55 X-Runtime: ['0.042949']
56 X-XSS-Protection: [1; mode=block]
57 content-length: ['2']
58 status: {code: 200, message: OK}
59- request:
60 body: status=Toot%21&visibility=public&spoiler_text=Content+warning 3 body: status=Toot%21&visibility=public&spoiler_text=Content+warning
61 headers: 4 headers:
62 Accept: ['*/*'] 5 Accept: ['*/*']
@@ -69,23 +12,23 @@ interactions:
69 method: POST 12 method: POST
70 uri: http://localhost:3000/api/v1/statuses 13 uri: http://localhost:3000/api/v1/statuses
71 response: 14 response:
72 body: {string: '{"id":"99882235567143815","created_at":"2018-04-18T20:06:03.657Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content 15 body: {string: '{"id":"99979315182120792","created_at":"2018-05-05T23:34:41.011Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
73 warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235567143815","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235567143815","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 16 warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979315182120792","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979315182120792","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 17 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI 18 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} 19 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":126},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers: 20 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate'] 21 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8] 22 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"659de07b67bf23e3c5e45fb707311e3f"] 23 ETag: [W/"ee3b3fe4b73d9e073709d4a6afdbcee9"]
81 Transfer-Encoding: [chunked] 24 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin'] 25 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff] 26 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN] 27 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [69fa987f-cfb6-4262-b402-bb11564474b0] 28 X-Request-Id: [3f5ee70c-0cee-4cbd-b11c-a2df9f9bb971]
86 X-Runtime: ['0.320493'] 29 X-Runtime: ['0.254603']
87 X-XSS-Protection: [1; mode=block] 30 X-XSS-Protection: [1; mode=block]
88 content-length: ['1411'] 31 content-length: ['1412']
89 status: {code: 200, message: OK} 32 status: {code: 200, message: OK}
90- request: 33- request:
91 body: null 34 body: null
@@ -97,19 +40,19 @@ interactions:
97 Content-Length: ['0'] 40 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1] 41 User-Agent: [python-requests/2.9.1]
99 method: DELETE 42 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99882235567143815 43 uri: http://localhost:3000/api/v1/statuses/99979315182120792
101 response: 44 response:
102 body: {string: '{}'} 45 body: {string: '{}'}
103 headers: 46 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate'] 47 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8] 48 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"b6837f4319f47b5568763ee37aa5b1c9"] 49 ETag: [W/"c732f316f1df07fd20ff3caf17ec177d"]
107 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff] 52 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN] 53 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [64e2f9aa-17b1-47d2-a13e-92d9dd44af40] 54 X-Request-Id: [52d9453a-b319-4f7f-841d-e92b32d20b7f]
112 X-Runtime: ['0.075576'] 55 X-Runtime: ['0.109436']
113 X-XSS-Protection: [1; mode=block] 56 X-XSS-Protection: [1; mode=block]
114 content-length: ['2'] 57 content-length: ['2']
115 status: {code: 200, message: OK} 58 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)